package SingletonMode;

/**
 * @program: DesignModeProject
 * @description: 枚举
 * @author: Li canzhang
 * @create: 2022-04-12 11:03
 **/
public class SingletonTest08 {
    public static void main(String[] args) {
        Singleton08 inst1 = Singleton08.INST;
        Singleton08 inst2 = Singleton08.INST;

        System.out.println(inst1.hashCode());
        System.out.println(inst2.hashCode());
    }
}

enum Singleton08{
    INST;
}
